package com.paradogs.gs.misc.exceptions;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: yumi
 * @date: 2024/10/28  22:52
 * @Description: 游戏业务异常
 */
@Data
@NoArgsConstructor
public class BizException extends RuntimeException {

    private Integer code;

    public BizException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }

    public BizException(Integer code) {
        this.code = code;
    }
    public BizException(String msg) {
        super(msg);
    }
}
